package com.etc.service;


import com.etc.pojo.Video;
import com.github.pagehelper.PageInfo;
import org.apache.ibatis.annotations.Param;


public interface VideoPersonageService {

    /**
     * 查询用户发布所有视频
     * @param userId
     * @return
     */
    PageInfo<Video> queryAllVideoByUserId(String userId, Integer pageNum);

    /**
     * 删除视频
     * @param videoId
     * @return
     */
    boolean deleteVideoByVideoId(@Param("videoId") String videoId,int videoState);

    /**
     * 增加视频
     * @param video
     * @return
     */
    boolean addVideo(Video video);
    /**
     * 增加视频
     * @param video
     * @return
     */
    boolean addVipVideo(Video video);
}
